package com.itheima_05;

public class MethodTest {
    public static void main(String[] ags) {
        System.out.println(compare(1, 2));
        System.out.println(compare((byte)1, (byte)2));
        System.out.println(compare((short)1, (short)2));
        System.out.println(compare(1L, 2L));
    }
    // int
    public static boolean compare(int a, int b) {
        System.out.println("int");
        return a == b;
    }
    // byte
    public static boolean compare(byte a, byte b) {
        System.out.println("byte");
        return a == b;
    }
    // short
    public static boolean compare(short a, short b) {
        System.out.println("short");
        return a == b;
    }
    // long
    public static boolean compare(long a, long b) {
        System.out.println("long");
        return a == b;
    }
}
